package day09.Map.LX;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class Lian03 {
    public static void main(String[] args) {
        Map<String,String> map=new HashMap<>();
        map.put("张无忌", "赵敏");
        map.put("郭靖", "黄蓉");
        map.put("杨过", "小龙女");
        Set<Map.Entry<String, String>> entries = map.entrySet();
        for (Map.Entry<String, String> entry : entries) {
            String key = entry.getKey();
            String value = entry.getValue();
            System.out.println(key+"---"+value);
        }
    }
}
